package jpb.module.dao.manager.mapper;

import jpb.module.daomain.manager.Manager;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by haol on 2017/3/14.
 */
@Repository
public interface ManagerMapper {

        void delete(@Param("id") int id);

        Manager getByAccount(@Param("account") String account);

        void add(@Param("manager") Manager manager);

        void update(@Param("manager") Manager manager);

        void updateHead(@Param("manager") Manager manager);

        void updateTime( @Param("id") String id,@Param("time") String time);

        void updatePwd(@Param("manager") Manager manager);

        void updateLoginTime(@Param("manager") Manager manager);

        List<Manager> getByOid(@Param("oid") String oid);

        Manager get(@Param("id") String id);

       // Manager getByOidMid(@Param("oid") String oid, @Param("mid") String mid);

        Manager getFounder(@Param("oid") String oid);
}
